<{include file="admin/head.html"}>
<link rel="stylesheet" href="<{$smarty.const.__URL__}>plugins/tablecloth/tablecloth.css">
<body>
	<{include file="admin/nav.html"}>
	<div id="content">
		<div id="sidebar">
			<ul>
				<{foreach from=$cats item=c}>
				<li><a href="article.php?do=list&cid=<{$c.id}>"><{$c.name}></a></li>
				<li><a href="article.php?do=add&cid=<{$c.id}>">添加<{$c.name}></a></li>
				<{/foreach}>
			</ul>
		</div>
		<div id="main">
			<h2 id="page_title"><{$pageTitle}></h2>
				<{if $list}>
				<table>
					<tr>
						<th style="width:15%;">标题</th>
						<th style="width:30%;">摘要</th>
						<th style="40%">内容</th>
						<th style="width:200px;">操作</th>
					</tr>
					<{foreach from=$list item=l}>
					<tr>
						<td><{$l.title}></td>
						<td>
							<div class="article_ct"><{$l.abstract|default:'&nbsp;'}></div>
						</td>
						<td>
							<div class="article_ct"><{$l.content|default:'&nbsp;'}></div>
						</td>
						<td>
							<a href="<{$smarty.const.__URL__}>article.php?id=<{$l.id}>">查看</a>
							<a href="article.php?do=editArt&id=<{$l.id}>">修改</a>
							<a href="javascript:;" class="ln_del" data="{'url':'article.php?do=delArt&id=<{$l.id}>','to':'article.php?do=news'}">删除</a>							
						</td>
					</tr>
					<{/foreach}>
				</table>
				<{else}>
					<div class="no_data">暂无数据</div>
				<{/if}>
		</div>
	</div>
	<script type="text/javascript" src="<{$smarty.const.__URL__}>plugins/tablecloth/tablecloth.js"></script>
</body>
</html>